home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / info / dired.info-1 < prev    next >
Encoding:
GNU Info File  |  1995-09-01  |  46.7 KB  |  1,194 lines

  1. This is Info file ../info/dired.info, produced by Makeinfo-1.55 from
  2. the input file dired.texinfo.
  3.  
  4.    This file documents Tree Dired, the GNU Emacs Directory Browser, and
  5. most of the extra features available as an option.
  6.  
  7.    Copyright (C) 1991, 1992 Free Software Foundation
  8.  
  9.    Permission is granted to make and distribute verbatim copies of this
  10. manual provided the copyright notice and this permission notice are
  11. preserved on all copies.
  12.  
  13.    Permission is granted to copy and distribute modified versions of
  14. this manual under the conditions for verbatim copying, provided also
  15. that the section entitled "GNU General Public License" is included
  16. exactly as in the original, and provided that the entire resulting
  17. derived work is distributed under the terms of a permission notice
  18. identical to this one.
  19.  
  20.    Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the section entitled "GNU General Public License"
  23. may be included in a translation approved by the author instead of in
  24. the original English.
  25.  
  26. 
  27. File: dired.info,  Node: Top,  Next: Dired,  Prev: (dir),  Up: (dir)
  28.  
  29.    This file documents Tree Dired (version 6), the GNU Emacs Directory
  30. Editor, including the optional "Dired Extra" features.
  31.  
  32.    Tree Dired is an enhanced version of the Classic (18.xx Emacs) Dired
  33. and will be the Dired of Emacs 19.  It is known to work with Emacs
  34. 18.55 and 18.57 (and probably most earlier versions).
  35.  
  36. Revision of this manual:
  37.  
  38. !Id: dired.texinfo,v 1.1 1993/12/21 22:31:56 jwz Exp !
  39.  
  40. Report bugs to:
  41.      Sebastian Kremer <sk@thp.uni-koeln.de>
  42.  
  43. * Menu:
  44.  
  45. * Dired::            Dired, the Directory Editor
  46. * Tree Dired Extra::        Tree Dired Extra features
  47. * Dired Internals::        Dired Internals
  48. * Dired Known Problems::    Known Problems with Dired
  49.  
  50.  -- Indices --
  51.  
  52. * Dired Variable Index::
  53. * Dired Function Index::
  54. * Dired Key Index::
  55. * Dired Concept Index::
  56.  
  57.  -- The Detailed Node Listing --
  58.  
  59. Dired, the Directory Editor
  60.  
  61. * Entering Dired::
  62. * Editing in Dired::
  63. * Listing Files in Dired::
  64. * Marking Files in Dired::
  65. * Mark-using Commands::
  66. * Commands That Do Not Use Marks::
  67. * Subdirectories in Dired::
  68. * Hiding Directories in Dired::
  69. * Acknowledgement::
  70. * Dired Customization::
  71.  
  72. Mark-using Commands
  73.  
  74. * Copy and Move Into a Directory::
  75. * Renaming and More With Regexps::
  76. * Other File Creating Commands::
  77. * Deleting Files With Dired::
  78. * Dired Shell Commands::
  79. * Compressing and Uncompressing::
  80. * Changing File Attributes::
  81. * Loading and Byte-compiling Emacs Lisp Files::
  82. * Printing the Marked Files::
  83.  
  84. Dired Customization
  85.  
  86. * Dired User Options::
  87. * Dired Configuration::
  88. * Dired Hooks::
  89.  
  90. Tree Dired Extra features
  91.  
  92. * Tree Dired Extra Features::
  93. * Dired Minibuffer History::
  94. * Inserting All Marked Subdirectories::
  95. * Dynamic Dired Markers::
  96. * Omitting Files in Dired::
  97. * Advanced Dired Mark Commands::
  98. * Virtual Dired::
  99. * Multiple Dired Directories::
  100. * Dired Local Variables::
  101. * Making Relative Symbolic Links in Dired::
  102. * Letting Dired Guess What Shell Command to Apply::
  103. * dired-trns.el::        Filename Transformers for Dired Shell Commands
  104. * dired-cd.el::            Changing the Working Directory for Dired Shell Commands
  105. * dired-nstd.el::        Nested Dired format
  106. * find-dired.el::        Feeding Find Output to Dired
  107.  
  108. Dired Internals
  109.  
  110. * Tree Dired Internals::
  111. * Dired Mark Internals::
  112.  
  113. 
  114. File: dired.info,  Node: Dired,  Next: Tree Dired Extra,  Prev: Top,  Up: Top
  115.  
  116. Dired, the Directory Editor
  117. ***************************
  118.  
  119.    Dired makes it easy to delete or visit many of the files in a single
  120. directory (and possibly its subdirectories) at once.  It makes an Emacs
  121. buffer containing a listing of the directories, in the format of `ls
  122. -lR'.  You can use the normal Emacs commands to move around in this
  123. buffer, and special Dired commands to operate on the files.  You can
  124. run shell commands on files, visit, compress, load or byte-compile
  125. them, change their file attributes and insert subdirectories into the
  126. same buffer.  You can "mark" files for later commands or "flag" them
  127. for deletion, either file by file or all files matching certain
  128. criteria.
  129.  
  130. * Menu:
  131.  
  132. * Entering Dired::
  133. * Editing in Dired::
  134. * Listing Files in Dired::
  135. * Marking Files in Dired::
  136. * Mark-using Commands::
  137. * Commands That Do Not Use Marks::
  138. * Subdirectories in Dired::
  139. * Hiding Directories in Dired::
  140. * Acknowledgement::
  141. * Dired Customization::
  142.  
  143. 
  144. File: dired.info,  Node: Entering Dired,  Next: Editing in Dired,  Prev: Dired,  Up: Dired
  145.  
  146. Entering Dired
  147. ==============
  148.  
  149. To invoke Dired, do `C-x d' or `M-x dired'.  The command reads a
  150. directory name or wildcard file name pattern as a minibuffer argument
  151. just like the `list-directory' command, `C-x C-d'. Invoking Dired with
  152. a prefix argument lets you enter the listing switches for the directory.
  153.  
  154.    Dired assumes you meant to use a wildcard if the last component of
  155. the name is not an existing file.  Note that only the last pathname
  156. component may contain wildcards.  With wildcards it uses the shell to do
  157. the filename globbing, whereas usually it calls `ls' directly.  Because
  158. of this, you might have to quote characters that are special to the
  159. shell.  For example, to dired all auto-save files in your `~/mail/'
  160. directory, use `~/mail/\#*' as argument to Dired.  Note the backslash
  161. needed to quote `#' (at the beginning of a word) to the shell.
  162.  
  163.    Where `dired' differs from `list-directory' is in naming the buffer
  164. after the directory name or the wildcard pattern used for the listing,
  165. and putting the buffer into Dired mode so that the special commands of
  166. Dired are available in it.  The variable `dired-listing-switches' is a
  167. string used as an argument to `ls' in making the directory; this string
  168. must contain `-l'.  Most other switches are also allowed, especially
  169. `-F', `-i' and `-s'.  For the `-F' switch to work you may have to set
  170. the variable `dired-ls-F-marks-symlinks', depending on what kind of
  171. `ls' program you are using.  *Note Dired Configuration::.
  172.  
  173.    When a Dired buffer for the given directory already exists, it is
  174. simply selected without refreshing it.  You can type `g' if you suspect
  175. it is out of date.
  176.  
  177.    To display the Dired buffer in another window rather than in the
  178. selected window, use `C-x 4 d' (`dired-other-window)' instead of `C-x
  179. d'.
  180.  
  181. 
  182. File: dired.info,  Node: Editing in Dired,  Next: Listing Files in Dired,  Prev: Entering Dired,  Up: Dired
  183.  
  184. Editing in Dired
  185. ================
  186.  
  187. Once the Dired buffer exists, you can switch freely between it and other
  188. Emacs buffers.  Whenever the Dired buffer is selected, certain special
  189. commands are provided that operate on files that are listed.  The Dired
  190. buffer is "read-only", and inserting text in it is not useful, so
  191. ordinary printing characters such as `d' and `x' are used for Dired
  192. commands, and digits are prefix arguments.
  193.  
  194.    The file described by the line that point is on is called the
  195. "current file".  The directory this file is in is the "current Dired
  196. directory".  Note that there may be several directories in one Dired
  197. buffer as long as they belong to the same tree.  The top level
  198. directory, the "root" of the tree, is used as the working directory of
  199. the buffer.
  200.  
  201.    Some or all directories can be "hidden", leaving only their
  202. headerlines visible, and exlcuding their files from Dired operations.
  203.  
  204.    Files can be "marked" for later commands.  Marking means putting a
  205. special character, usually `*', in the first column of the file line.
  206. To "flag" a file means to mark it for later deletion.  This special
  207. case of "marking" is distinguished so that you do not delete files
  208. accidentally.  Internally, the only difference between marking and
  209. flagging is the character used to mark the file: `*' (an asterisk) for
  210. a marked file, and `D' for files flagged for deletion.
  211.  
  212.    Most Dired commands operate on the "marked" files and default to the
  213. current file.  They are the "mark-using" commands.  Deleting is the
  214. only mark-using command that does not default to the current file.
  215.  
  216.    Dired buffers "know" about each other.  For example, copying from
  217. DIR1 into DIR2 will update DIR2's Dired buffer(s).  When you move files
  218. or directories, file and dired buffers are kept up to date and refer to
  219. the new location.  But Dired only knows about files changed by itself,
  220. not by other parts of Emacs or programs outside Emacs.
  221.  
  222.    All the usual Emacs cursor motion commands are available in Dired
  223. buffers.  Some special purpose commands are also provided.  The keys
  224. `C-n' and `C-p' are redefined so that they try to position the cursor
  225. at the beginning of the filename on the line, rather than at the
  226. beginning of the line.
  227.  
  228.    For extra convenience, SPC and `n' in Dired are equivalent to `C-n'.
  229. `p' is equivalent to `C-p'.  Moving by lines is also done so often in
  230. Dired that it deserves to be easy to type.  DEL (move up and unflag) is
  231. often useful simply for moving up.
  232.  
  233. 
  234. File: dired.info,  Node: Listing Files in Dired,  Next: Marking Files in Dired,  Prev: Editing in Dired,  Up: Dired
  235.  
  236. Listing Files in Dired
  237. ======================
  238.  
  239. Initially the Dired buffer shows the directory you selected.  The first
  240. line shows the full directory name.  It is an example of a "headerline"
  241. of a directory.  Note that it is terminated by a colon (`:') that is
  242. not part of the directory name.  The second line usually displays the
  243. total size of all files in the directory or the wildcard used.  Both
  244. are examples of "non-file lines".  Applying a command to a non-file
  245. line signals an error.  The other lines of the directory, called the
  246. "file lines", show information about each file such as permission bits,
  247. size and date of last modification, and the name of the file.
  248.  
  249.    For example, the listing
  250.  
  251.        /home/sk/lib/emacs/lisp:
  252.        total 4973
  253.        -rw-r--r--   1 sk       users      231608 Feb  6 16:58 ChangeLog
  254.        drwxr-sr-x   2 sk       users        2048 Feb  6 11:07 RCS
  255.        -r--r--r--   1 sk       users      141389 Feb  6 10:45 dired.el
  256.        -r--r--r--   1 sk       users      113033 Feb  5 16:21 dired.texi
  257.        ...
  258.      
  259.        /home/sk/lib/emacs/lisp/RCS:
  260.        total 4798
  261.        -r--r--r--   1 sk       users      231748 Feb  6 16:59 dired.texi,v
  262.        -r--r--r--   1 sk       users      763898 Feb  6 10:45 dired.el,v
  263.        ...
  264.  
  265.    has a headerline for the `lisp' directory, a total line saying there
  266. are 4973 K in all the files of that directory (your `ls' program may
  267. use units of blocks instead), and several file lines.  After that, a
  268. headerline for the `RCS' subdirectory with its total line and its files
  269. follows.
  270.  
  271.    Here is an example of a wildcard listing:
  272.  
  273.        /home/sk/lib/emacs/lisp:
  274.        wildcard dired*
  275.        -rw-r--r--   1 sk       users      113036 Feb  6 16:59 dired.texi
  276.        -r--r--r--   1 sk       users       81267 Feb  6 16:29 dired.elc
  277.        -r--r--r--   1 sk       users       38436 Feb  6 16:28 dired-x.elc
  278.        -r--r--r--   1 sk       users       60258 Feb  6 16:27 dired-x.el
  279.        -r--r--r--   1 sk       users      141389 Feb  6 10:45 dired.el
  280.        ...
  281.  
  282.    Since `ls' does not provide a total count when called with a wildcard
  283. argument, the second line now gives instead the wildcard used, here
  284. `dired*'.  If there would have been a directory matching the wildcard,
  285. e.g. a `dired/' subdirectory, its file line would be shown, but it
  286. would not have been expanded automatically.
  287.  
  288.    Filenames may have embedded and trailing (but not leading) spaces.
  289. Leading spaces are not recognized because different `ls' programs
  290. differ in the amount of whitespace the insert before the filename.
  291. Filenames may *not* contain newlines or `^M''s.  You can get away with
  292. `^M''s in filenames if you do
  293.  
  294.          (setq selective-display nil)
  295.  
  296. in the Dired buffer (inside `dired-mode-hook', *Note Dired Hooks::.).
  297. But this also disables the `=' and `$' hiding commands, *Note Hiding
  298. Directories in Dired::.
  299.  
  300.    Other unprintable characters than `^M' or newline (`^J') in
  301. filenames are no problem for Dired.  But your `ls' program may not
  302. output them correctly (e.g., replacing all unprintable characters with a
  303. question mark `?').  Dired can do nothing if `ls' suppresses
  304. information about the filenames.  But some (System V derived) `ls'
  305. programs have a `-b' switch to quote control characters, e.g.  `\n' for
  306. a newline character, or `\007' for a ASCII bell character (`C-g'), so
  307. you might want to add `b' to your switches (see below).  Dired
  308. translates the quoted control character escapes when a `-b' switch was
  309. used.  The `-b' switch is the recommended method to cope with funny
  310. filenames containing newlines or leading spaces.  But check if your
  311. `ls' understands `-b' and really quotes newlines and spaces.  Dired is
  312. known to work with GNU `ls -b', but other `ls -b' don't quote spaces,
  313. so leading spaces still don't work with these `ls' programs.
  314.  
  315.    The appearance of the listing is determined by the listing switches
  316. used, for example whether you display or suppress `.' files with the
  317. `-a' and `-A' switches, use the `-F' switch to tag filenames etc.  It
  318. may additionally be restricted to certain files if you used wildcards
  319. to display only those files matching a shell file wildcard.
  320.  
  321.    Dired has commands that change the listing switches for this buffer.
  322. They are mainly used to set the sort mode, but can also be used to
  323. change other formatting options.  The buffer is automatically refreshed
  324. after the switches are changed to let the new format take effect.
  325.  
  326.    The default value for the switches comes from the variable
  327. `dired-listing-switches'; a prefix argument to `dired' can be use to
  328. determine the switches used for a specific buffer.  *Note Entering
  329. Dired::.  Each Dired buffer has its own value for the switches, stored
  330. in the variable `dired-actual-switches'.
  331.  
  332.    The Dired modeline displays `by name' or `by date' to indicate the
  333. sort mode.  It uses the regexps in the variables
  334. `dired-sort-by-date-regexp' and `dired-sort-by-name-regexp' to decide
  335. what should be displayed.  If neither of the regexps matches, the
  336. listing switches are displayed literally.  You can use this to always
  337. display the literal switches instead of `by name' or `by date': set
  338. them to a regexp that never matches any listing switches, for example
  339. `^$'.
  340.  
  341.    Most `ls' programs can only sort by name (without `-t') or by date
  342. (with `-t'), nothing else.  GNU `ls' additionally sorts on size with
  343. `-S', on extension with `-X', and unsorted (in directory order) with
  344. `-U'.  So anything that does not contain these is sort "by name".
  345. However, this is configurable in the variable
  346. `dired-ls-sorting-switches', which defaults to `"SXU"'.  It contains a
  347. string of `ls' switches (single letters) except `t' that influence
  348. sorting.  It is consulted at load time, so if you redefine it, you must
  349. do it before Dired is loaded.
  350.  
  351. `s'
  352.      (`dired-sort-toggle-or-edit') Toggle between sort by name/date and
  353.      refresh the dired buffer.  With a prefix argument you can edit the
  354.      current listing switches instead.
  355.  
  356.    After some time the listing may become out of date because of
  357. actions by other programs than Dired.  You can refresh the complete
  358. Dired buffer from disk or only refresh the lines of certain files or a
  359. single file.
  360.  
  361. `l'
  362.      (`dired-do-redisplay') Redisplay all marked (or, with a prefix
  363.      argument, the next N) files.  As always, if no files are marked,
  364.      the current file is used.
  365.  
  366.      If on a headerline, redisplay that subdirectory.  In that case, a
  367.      prefix arg lets you edit the `ls' switches used for the new
  368.      listing.
  369.  
  370. `g'
  371.      (`revert-buffer') The `g' command in Dired ultimately runs
  372.      `dired-revert' to reinitialize the buffer from the actual disk
  373.      directory (or directories).  All marks and flags in the Dired
  374.      buffer are restored, except of course for files that have
  375.      vanished.  Hidden subdirectories are hidden again.  *Note Hiding
  376.      Directories in Dired::.
  377.  
  378. `k'
  379.      (`dired-kill-line-or-subdir') Kill this line (but not this file).
  380.      Optional prefix argument is a repeat factor.  If file is displayed
  381.      as expanded subdirectory, kill that as well.
  382.  
  383.      If on a subdirectory line, kill that subdirectory.  Reinsert it
  384.      with `i' (`dired-maybe-insert-subdir'), *Note Subdirectories in
  385.      Dired::.
  386.  
  387.      Killing a file line means that the line is removed from the Dired
  388.      buffer.  The file is not touched, and the line will reappear when
  389.      the buffer is refreshed (using `g', `revert-buffer').  A killed
  390.      subdirectory will not reappear after reverting the buffer, since
  391.      `g' only list those subdirectories that were listed before.
  392.  
  393. `M-k'
  394.      (`dired-do-kill') Kill all marked lines (not files).  With a prefix
  395.      argument, kill all lines not marked or flagged.
  396.  
  397.      (For file marking, *Note Marking Files in Dired::.)
  398.  
  399. `C-x u'
  400. `C-_'
  401.      (`dired-undo') Undo in a Dired buffer.  This doesn't recover lost
  402.      files, it is just normal undo with a temporarily writable buffer.
  403.      You can use it to recover marks, killed lines or subdirs.  In the
  404.      latter case, you have to do `M-x dired-build-subdir-alist' to
  405.      parse the buffer again for the new subdirectory list.
  406.  
  407. 
  408. File: dired.info,  Node: Marking Files in Dired,  Next: Mark-using Commands,  Prev: Listing Files in Dired,  Up: Dired
  409.  
  410. Marking Files in Dired
  411. ======================
  412.  
  413. This section describes commands to mark and unmark single files, and
  414. commands to mark several files at once if they match certain criteria.
  415. There also is a command to move to the next marked file.
  416.  
  417.    As always, hidden subdirs are not affected.  *Note Hiding
  418. Directories in Dired::.
  419.  
  420. `m'
  421.      (`dired-mark-subdir-or-file') If on a file line, mark the current
  422.      file.  A numeric argument tells how many next or previous files to
  423.      mark.  If on a subdirectory header line, mark all its files except
  424.      `.' and `..'.
  425.  
  426. `u'
  427.      (`dired-unmark-subdir-or-file') Like `m', only unmarking instead
  428.      of marking.
  429.  
  430. `DEL'
  431.      (`dired-backup-unflag') Move up lines and remove flags there.
  432.      Optional prefix argument says how many lines to unflag; default is
  433.      one line.
  434.  
  435. `M-DEL'
  436.      (`dired-unflag-all-files') Remove a specific or all flags from
  437.      every file.  With an argument, queries for each marked file.  Type
  438.      your help character, usually `C-h', at that time for help.
  439.  
  440. `*'
  441.      (`dired-mark-executables') Mark all executable files.  With prefix
  442.      argument, unflag all those files.
  443.  
  444. `@'
  445.      (`dired-mark-symlinks') Mark all symbolic links.  With prefix
  446.      argument, unflag all those files.
  447.  
  448. `/'
  449.      (`dired-mark-directories') Mark all directory files except `.' and
  450.      `..'.  With prefix argument, unflag all those files.
  451.  
  452. `%m'
  453.      (`dired-mark-files-regexp') Mark all files matching REGEXP for use
  454.      in later commands.  A prefix argument means to unmark them
  455.      instead.  `.' and `..' are never marked.
  456.  
  457.      The match is against the non-directory part of the filename.  Use
  458.      `^' and `$' to anchor matches.  Exclude subdirs by hiding them.
  459.  
  460.      This is an Emacs regexp, not a shell wildcard.    E.g., use `\.o$' for
  461.      object files - just `.o' will mark more than you might think.  By
  462.      default, the match is case sensitive (just like filenames), since
  463.      `case-fold-search' is set to `nil' in Dired buffers.
  464.  
  465. `M-}'
  466.      (`dired-next-marked-file') Move to the next marked file, wrapping
  467.      around the end of the buffer.
  468.  
  469. `M-{'
  470.      (`dired-prev-marked-file') Move to the previous marked file,
  471.      wrapping around the beginning of the buffer.
  472.  
  473. 
  474. File: dired.info,  Node: Mark-using Commands,  Next: Commands That Do Not Use Marks,  Prev: Marking Files in Dired,  Up: Dired
  475.  
  476. Mark-using Commands
  477. ===================
  478.  
  479.    Most Dired commands operate on the "marked" files and default to the
  480. current file.  They are the "mark-using" commands.  Deleting is the
  481. only mark-using command that does not default to the current file.
  482.  
  483.    Mark-using Dired commands treat a numeric argument as a repeat count,
  484. meaning to act on the files of the next few lines instead of on the
  485. marked files.  That is, when you give a prefix argument the marks are
  486. not consulted at all.  A negative argument means to operate on the files
  487. of the preceding lines.  Either set of files is called "marked files"
  488. below, whether they really come from marks or from a prefix argument.
  489. The prompt of a mark-using command always makes clear which set of
  490. files is operated upon: it mentions either the marker character `*' or
  491. the `next N' files, where a negative N really means the previous -N
  492. files.
  493.  
  494.    Thus you can use a prefix argument of `1' to apply a command to just
  495. the current file, e.g, if you don't want to disturb the other files you
  496. marked.  As digits are prefix arguments in Dired, simply type `1'
  497. followed by the command.
  498.  
  499.    Many mark-using commands treat a prefix of N=0 specially, since it
  500. would otherwise be a no-op.
  501.  
  502.    All mark-using commands display a list of files for which they
  503. failed.  Type `W' to see why a (mark-using or other) command failed.
  504. Error messages from shell commands (`stderr') cannot be redirected
  505. separately and goes together with the usual output (`stdout').
  506.  
  507. * Menu:
  508.  
  509. * Copy and Move Into a Directory::
  510. * Renaming and More With Regexps::
  511. * Other File Creating Commands::
  512. * Deleting Files With Dired::
  513. * Dired Shell Commands::
  514. * Compressing and Uncompressing::
  515. * Changing File Attributes::
  516. * Loading and Byte-compiling Emacs Lisp Files::
  517. * Printing the Marked Files::
  518.  
  519. 
  520. File: dired.info,  Node: Copy and Move Into a Directory,  Next: Renaming and More With Regexps,  Prev: Mark-using Commands,  Up: Mark-using Commands
  521.  
  522. Copy, Move etc. Into a Directory
  523. --------------------------------
  524.  
  525. This section explains commands that create a new file for each marked
  526. file, for example by copying (`c') or moving (`r') files.  They prompt
  527. in the minibuffer for a TARGET argument, usually the target directory
  528. in which the new files are created.  But if there is but one marked
  529. file, the target may also be a plain file.  (Otherwise you could not
  530. simply rename or copy a single file within the same directory.) Even
  531. with one marked file the target may still be an (existing) directory.
  532.  
  533.    The target prompt displays a "default target" that will be used if
  534. you just type `RET'.  Normally the default target is the current Dired
  535. directory, so if you want to copy into some specific subdirectory, move
  536. point into that subdirectory before typing `c'.  But if there is a
  537. Dired buffer in the next window, and `dired-dwim-target' is true, its
  538. current Dired directory is used.  This makes it easy to copy from one
  539. Dired buffer into another if both are displayed.  On the other hand you
  540. have to use `C-x 1' to make other Dired buffers vanish if you do not
  541. want to have them as default targets.  To make Dired never look at the
  542. next window, set the variable `dired-dwim-target' to nil (`dwim' means
  543. Do What I Mean).  *Note Dired User Options::, on how to set
  544. cutomization variables.
  545.  
  546.    As a general rule, Dired will not let you remove or overwrite a file
  547. without explicit confirmation.  Dired asks you for each existing target
  548. file whether or not to overwrite just this file (answer `y' or `n') or
  549. all remaining files (answer `!').  You can also type your help
  550. character, usually `C-h', at that time for help.
  551.  
  552. `c'
  553.      (`dired-do-copy') Copy the marked (or next N) files into a
  554.      directory, or copy a single file.
  555.  
  556.      Thus, a zero prefix argument (N-0) copies nothing.  But it toggles
  557.      the variable `dired-copy-preserve-time'.
  558.      *Note Dired User Options::, on how to set customization variables.
  559.  
  560. `r'
  561.      (`dired-do-move') Move the marked files into a directory.  If
  562.      there is just one marked file, rename that file.  As the marked
  563.      files default to the current file, this can also be used to simply
  564.      rename the current file.
  565.  
  566.      Dired silently changes the visited file name of buffers associated
  567.      with moved files so that they refer to the new location of the
  568.      file.
  569.  
  570.      When a directory is renamed, its headerlines in Dired buffers are
  571.      updated, and any buffers visiting affected files have their
  572.      visited file name changed to refer to the new location.  Their
  573.      buffer name is changed if no buffer with such a name already
  574.      exists.  Affected files are all those which contain the directory
  575.      somewhere in their absolute path name.
  576.  
  577.      A zero prefix arguments does not move any files, but toggles the
  578.      variable `dired-dwim-target'.
  579.  
  580. `H'
  581.      (`dired-do-hardlink') Make hard links from the target directory to
  582.      each marked file.
  583.  
  584. `Y'
  585.      (`dired-do-symlink') Make symbolic links from the target directory
  586.      to each marked file.
  587.  
  588.    Linking is very similar to copying in that new files are created
  589. while the old files stay.  If you want each newly copied or linked file
  590. to be marked with the same marker that its original has, set the
  591. variables `dired-keep-marker-copy', `dired-keep-marker-hardlink' or
  592. `dired-keep-marker-symlink' to `t'.  Set them to `nil' to not give
  593. these newly created files marks.  The default is to mark them with `C',
  594. `H' and `Y', respectively.
  595.  
  596.    Moving differs from copying and linking in that the old file is
  597. removed as part of the creation of the new file.  Thus it makes sense
  598. to set the variable `dired-keep-marker-move' to `t' (the default) so
  599. that moved files "take their markers with them".
  600.  
  601. 
  602. File: dired.info,  Node: Renaming and More With Regexps,  Next: Other File Creating Commands,  Prev: Copy and Move Into a Directory,  Up: Mark-using Commands
  603.  
  604. Renaming (and More) With Regexps
  605. --------------------------------
  606.  
  607.    A second class of Commands uses regular expressions to construct a
  608. new filename from each marked file. *Note Syntax of Regular
  609. Expressions: (emacs)Regexps.  The commands to make new names by regexp
  610. conversion are the same as those to make them in another directory,
  611. except that they share a prefix char, `%'.
  612.  
  613. `%r'
  614.      (`dired-rename-regexp') Rename files with regexps
  615.  
  616. `%c'
  617.      (`dired-do-copy-regexp') Copy files with regexps.
  618.  
  619. `%H'
  620.      (`dired-do-hardlink-regexp') Make hard links with regexps.
  621.  
  622. `%Y'
  623.      (`dired-do-symlink-regexp') Make symbolic links with regexps.
  624.  
  625.    These commands prompt in the minibuffer for a REGEXP and a NEWNAME.
  626. For each marked file matching REGEXP, a new filename is constructed
  627. from NEWNAME.  The match can be anywhere in the file name, it need not
  628. span the whole filename.  Use `^' and `$' to anchor matches that should
  629. span the whole filename.  Only the first match in the filename is
  630. replaced with NEWTEXT.  (It would be easy to change this to replace all
  631. matches, but probably harder to use.)
  632.  
  633.    `\&' in NEWNAME stands for the entire text being replaced.  `\D' in
  634. NEWNAME, where D is a digit, stands for whatever matched the D'th
  635. parenthesized grouping in REGEXP.  As each match is found, the user
  636. must type a character saying whether or not to apply the command to
  637. just this file (`y' or `n') or to all remaining files(`!').  For help
  638. type your help character, usually `C-h', at that time.
  639.  
  640.    For example, if you want to rename all `.lsp' files to `.el' files,
  641. type first `%m' with `\.lsp$' as regexp to mark all `.lsp' files.  Then
  642. type `%r' with `\.lsp$' and `.el' as REGEXP and NEWTEXT arguments.
  643. Dired will prompt you for each file to be renamed.
  644.  
  645.    Or to append `.old' to all marked files, use `%r' `$' `RET' `.old'
  646. `RET', replacing the empty string at the end of each file name with
  647. `.old'.
  648.  
  649.    You can use the regexp `\(.+\)\.\(.+\)$' to make the basename as
  650. `\1' and the extension as `\2' available in NEWTEXT.
  651.  
  652.    With a zero prefix arg, renaming by regexp affects the complete
  653. pathname.  Usually only the non-directory part of file names is used and
  654. changed, and renaming only takes place within the current directory.
  655. The zero prefix argument can be used to change the directory part as
  656. well.
  657.  
  658.    Often you will want to apply the command to all files matching the
  659. same REGEXP that you use in the command.  Simply use the `%m' command
  660. with REGEXP as argument, which will then also be the default for the
  661. next regexp using command. For example, to remove a `V17I12-' prefix
  662. from several filenames, use `%m' `^V17I12-' `RET' `%r' `RET' `RET', in
  663. effect replacing the prefix with the empy string.
  664.  
  665. 
  666. File: dired.info,  Node: Other File Creating Commands,  Next: Deleting Files With Dired,  Prev: Renaming and More With Regexps,  Up: Mark-using Commands
  667.  
  668. Other File Creating Commands
  669. ----------------------------
  670.  
  671.    Commands to change the case of file names:
  672.  
  673. `%u'
  674.      (`dired-upcase') Rename each marked file to upper case.
  675.  
  676. `%l'
  677.      (`dired-downcase') Rename each marked file to lower case.
  678.  
  679. 
  680. File: dired.info,  Node: Deleting Files With Dired,  Next: Dired Shell Commands,  Prev: Other File Creating Commands,  Up: Mark-using Commands
  681.  
  682. Deleting Files With Dired
  683. -------------------------
  684.  
  685. Deleting is a special mark-using command.  It uses a special marker,
  686. `D', and does not default to the current file if no files are marked to
  687. prevent accidental deletions.
  688.  
  689.    *Note Dired Customization::, variable `dired-del-marker' to make
  690. deleting behave exactly like any mark-using command.
  691.  
  692. `d'
  693.      (`dired-flag-file-deleted') Flag this file for deletion.  If on a
  694.      subdirectory headerline, mark all its files except `.' and `..'.
  695.  
  696. `u'
  697.      (`dired-unmark-subdir-or-file') Remove deletion-flag on this line.
  698.  
  699. `DEL'
  700.      (`dired-backup-unflag') Remove deletion-flag on previous line,
  701.      moving point to that line.
  702.  
  703. `%d'
  704.      (`dired-flag-regexp-files') Flag all files containing the specified
  705.      REGEXP for deletion.
  706.  
  707.      The match is against the non-directory part of the filename.  Use
  708.      `^' and `$' to anchor matches.  Exclude subdirs by hiding them.
  709.  
  710.      The special directories `.' and `..' are never flagged.
  711.  
  712. `x'
  713.      (`dired-do-deletions') Delete the files that are flagged for
  714.      deletion (with `D').
  715.  
  716. `X'
  717.      (`dired-do-delete') Delete the `*'-marked (as opposed to the
  718.      `D'-flagged) files.
  719.  
  720. `#'
  721.      (`dired-flag-auto-save-files') Flag all auto-save files (files
  722.      whose names start and end with `#') for deletion (*note
  723.      Auto-Saving: Protection Against Disasters: (emacs)Auto Save.).
  724.  
  725. `~'
  726.      (`dired-flag-backup-files') Flag all backup files (files whose
  727.      names end with `~') for deletion (*note Backup Files:
  728.      (emacs)Backup.).
  729.  
  730. `. (Period)'
  731.      (`dired-clean-directory') Flag excess numeric backup files for
  732.      deletion.  The oldest and newest few backup files of any one file
  733.      are exempt; the middle ones are flagged.
  734.  
  735.    You can flag a file for deletion by moving to the line describing the
  736. file and typing `d' or `C-d'.  The deletion flag is visible as a `D' at
  737. the beginning of the line.  Point is moved to the beginning of the next
  738. line, so that repeated `d' commands flag successive files.
  739.  
  740.    The files are flagged for deletion rather than deleted immediately to
  741. avoid the danger of deleting a file accidentally.  Until you direct
  742. Dired to delete the flagged files, you can remove deletion flags using
  743. the commands `u' and DEL.  `u' works just like `d', but removes flags
  744. rather than making flags.  DEL moves upward, removing flags; it is like
  745. `u' with numeric argument automatically negated.
  746.  
  747.    To delete the flagged files, type `x'.  This command first displays
  748. a list of all the file names flagged for deletion, and requests
  749. confirmation with `yes'.  Once you confirm, all the flagged files are
  750. deleted, and their lines are deleted from the text of the Dired buffer.
  751. The shortened Dired buffer remains selected.  If you answer `no' or
  752. quit with `C-g', you return immediately to Dired, with the deletion
  753. flags still present and no files actually deleted.
  754.  
  755.    Deletions proceed from the end of the buffer, so if subdirs are in a
  756. natural order in the buffer, it usually works to flag `dir1',
  757. `dir1/dir2' and `dir1/dir2/*' (by typing `d' on the directory
  758. headerlines) and delete everything, including `dir1/dir2' and `dir1'.
  759. Using shell commands (e.g.  `rm -rf') to remove complete directories
  760. may be quicker than having Dired remove each file separately. (*Note
  761. Dired Shell Commands::.)  However, like all actions external to Dired,
  762. this does not update the display.
  763.  
  764.    The `#', `~' and `.' commands flag many files for deletion, based on
  765. their names.  These commands are useful precisely because they do not
  766. actually delete any files; you can remove the deletion flags from any
  767. flagged files that you really wish to keep.
  768.  
  769.    `#' flags for deletion all files that appear to have been made by
  770. auto-saving (that is, files whose names begin and end with `#').  `~'
  771. flags for deletion all files that appear to have been made as backups
  772. for files that were edited (that is, files whose names end with `~').
  773.  
  774.    `.' (Period) flags just some of the backup files for deletion: only
  775. numeric backups that are not among the oldest few nor the newest few
  776. backups of any one file.  Normally `dired-kept-versions' (not
  777. `kept-new-versions'; that applies only when saving) specifies the
  778. number of newest versions of each file to keep, and `kept-old-versions'
  779. specifies the number of oldest versions to keep.  Period with a
  780. positive numeric argument, as in `C-u 3 .', specifies the number of
  781. newest versions to keep, overriding `dired-kept-versions'.  A negative
  782. numeric argument overrides `kept-old-versions', using minus the value
  783. of the argument to specify the number of oldest versions of each file
  784. to keep.
  785.  
  786. 
  787. File: dired.info,  Node: Dired Shell Commands,  Next: Compressing and Uncompressing,  Prev: Deleting Files With Dired,  Up: Mark-using Commands
  788.  
  789. Shell Commands on Marked files
  790. ------------------------------
  791.  
  792. You can run arbitrary shell commands on the marked files. If there is
  793. output, it goes to a separate buffer.
  794.  
  795. `!'
  796.      (`dired-do-shell-command') Run a shell command on the marked files.
  797.  
  798.    A command string is prompted for in the minibuffer.  The list of
  799. marked files is appended to the command string unless asterisks `*'
  800. indicate the place(s) where the list should go.  Thus,
  801.  
  802.      command -flags
  803.  
  804.    is equivalent to
  805.  
  806.      command -flags *
  807.  
  808.    The filenames are inserted in the order they appear in the buffer.
  809. The file listed topmost in the buffer will be the leftmost in the list.
  810.  
  811.    Currently, there is no way to insert a real `*' into the command.
  812.  
  813.    As with all mark-using commands, if no files are marked or a specific
  814. numeric prefix arg is given, the current or the next N files are used.
  815. The prompt mentions the file(s) or the marker, as appropriate.
  816.  
  817.    However, for shell commands, a zero argument is special. It means to
  818. run command on each marked file separately:
  819.  
  820.      cmd * |foo
  821.  
  822.    results in
  823.  
  824.      cmd F1 |foo; ...; cmd FN |foo
  825.  
  826.    Usually
  827.  
  828.      cmd F1 ... FN |foo
  829.  
  830.    would be executed.
  831.  
  832.    No automatic redisplay is attempted because Dired cannot know what
  833. files should be redisplayed for a general shell command.  For example, a
  834. `tar cvf' will not change the marked files at all, but rather create a
  835. new file, while a `ci -u -m'...' *' will probably change the permission
  836. bits of all marked files.
  837.  
  838.    Type `l' to redisplay just the marked files, or `l' on a directory
  839. headerline to redisplay just that directory, or `g' to redisplay all
  840. directories.
  841.  
  842.    The shell command has the top level directory as working directory,
  843. so output files usually are created there instead of in a subdirectory,
  844. which may sometimes be surprising if all files come from the same
  845. subdirectory.  Just remember that an Emacs buffer can have but one
  846. working directory, and this is the top level directory in Dired buffers.
  847.  
  848.    Examples for shell commands:
  849.  
  850.    * Type `!' and
  851.  
  852.           tar cvf foo.tar
  853.  
  854.      to tar all marked files into a `foo.tar' file.  Dired does not know
  855.      that a new file has been created and you have to type `g' to
  856.      refresh the listing.  If you have several subdirectories in your
  857.      Dired buffer, the names given to `tar' will be relative to the top
  858.      level directory, and the output file `foo.tar' will also be created
  859.      there.
  860.  
  861.      You can use
  862.  
  863.           tar cvf - * | compress -c > foo.tar.Z
  864.  
  865.      as an alternative to immediately compress the tar file.
  866.  
  867.    * Type `0 !' and
  868.  
  869.           uudecode
  870.  
  871.      to uudecode each of the marked files.  Note the use of the zero
  872.      prefix argument to apply the shell command to each file separately
  873.      (uudecode doesn't accept a list of input files).  Type `g'
  874.      afterwards to see the created files.
  875.  
  876.    * Type `0 !' and
  877.  
  878.           uuencode * * >*.uu
  879.  
  880.      to uuencode each of the marked files, writing into a corresponding
  881.      `.uu' file.  Note the use of the zero prefix argument to apply the
  882.      shell command to each file separately.  Type `g' afterwards to see
  883.      the created `.uu' files.
  884.  
  885.    * Type `1 !' and
  886.  
  887.           mail joe@somewhere <*
  888.  
  889.      to mail the current file (note the prefix argument `1') to user
  890.      `joe@somewhere'.
  891.  
  892.    * Here is a Dired shell command to execute the current file,
  893.      assuming no other files are marked (else just give the prefix `1'
  894.      to `!'):
  895.           ./*
  896.      which will be expanded to `./CMD', thus CMD will be executed..
  897.      (Just `./' would be expanded to `./ CMD', with an intervening
  898.      `SPC'.)  This will work even if you don't have `.' in your
  899.      `$PATH'.  If `.' is in your path (not a good idea, as you will
  900.      find out if you dired a directory containing a file named `ls'), a
  901.      single `SPC' as command would also work.
  902.  
  903. 
  904. File: dired.info,  Node: Compressing and Uncompressing,  Next: Changing File Attributes,  Prev: Dired Shell Commands,  Up: Mark-using Commands
  905.  
  906. Compressing and Uncompressing
  907. -----------------------------
  908.  
  909. You can compress or uncompress the marked files.  Dired refuses to
  910. compress files ending in `.Z' (which are already compressed) or
  911. symbolic links (the link would be overwritten by a plain, compressed
  912. file) and to uncompress files not ending in `.Z'.
  913.  
  914. `C'
  915.      (`dired-do-compress') Compress the marked files.
  916.  
  917. `U'
  918.      (`dired-do-uncompress') Uncompress the marked files.
  919.  
  920. 
  921. File: dired.info,  Node: Changing File Attributes,  Next: Loading and Byte-compiling Emacs Lisp Files,  Prev: Compressing and Uncompressing,  Up: Mark-using Commands
  922.  
  923. Changing File Attributes
  924. ------------------------
  925.  
  926. You can change the file attributes (mode, group, owner) of marked files.
  927.  
  928. `M'
  929.      (`dired-do-chmod') Change the mode (also called "permission bits")
  930.      of the marked files.  This calls the `chmod' program, thus
  931.      symbolic modes like `g+w' are allowed.
  932.  
  933.      Multiple switches like `-fR g+w' are not understood, though.  Use
  934.      `!' (`dired-do-shell-command') for that.
  935.  
  936. `G'
  937.      (`dired-do-chgrp') Change the group of the marked files.
  938.  
  939. `O'
  940.      (`dired-do-chown') Change the owner of the marked files.  This
  941.      usually works for the superuser only.  It uses the program in the
  942.      variable `dired-chown-program' to do the change.
  943.  
  944. 
  945. File: dired.info,  Node: Loading and Byte-compiling Emacs Lisp Files,  Next: Printing the Marked Files,  Prev: Changing File Attributes,  Up: Mark-using Commands
  946.  
  947. Loading and Byte-compiling Emacs Lisp Files
  948. -------------------------------------------
  949.  
  950. You can load and byte-compile GNU Emacs Lisp files.  Errors are caught
  951. and reported after all files have been processed.
  952.  
  953. `L'
  954.      (`dired-do-load') Load the marked elisp files.
  955.  
  956. `B'
  957.      (`dired-do-byte-compile') Byte compile the marked elisp files.
  958.  
  959. 
  960. File: dired.info,  Node: Printing the Marked Files,  Prev: Loading and Byte-compiling Emacs Lisp Files,  Up: Mark-using Commands
  961.  
  962. Printing the Marked Files
  963. -------------------------
  964.  
  965. `P'
  966.      (`dired-do-print') Print the marked (or next N) files.  Uses the
  967.      shell command coming from variables `lpr-command' and
  968.      `lpr-switches' as default.
  969.  
  970.      Since internally this is just a special case of
  971.      `dired-do-shell-command', you can use `*' and pipes like for shell
  972.      command, e.g.,
  973.           (setq lpr-command: "lwf")
  974.           (setq lpr-switches: '("-l -m * | lpr -Palw"))
  975.      to print with the shell command `lwf -l -m * | lpr -Palw', where
  976.      `*' will be substituted by the marked files.  The `lpr-buffer' and
  977.      `lpr-region' don't know about `*' or `|', though, only Dired does.
  978.  
  979. 
  980. File: dired.info,  Node: Commands That Do Not Use Marks,  Next: Subdirectories in Dired,  Prev: Mark-using Commands,  Up: Dired
  981.  
  982. Commands That Do Not Use Marks
  983. ==============================
  984.  
  985. These are commands that visit files.  *Note Visiting Files:
  986. (emacs)Visiting.
  987.  
  988. `f'
  989.      (`dired-advertised-find-file') Visits the file described on the
  990.      current line.  It is just like typing `C-x C-f' and supplying that
  991.      file name.  If the file on this line is a subdirectory, `f'
  992.      actually causes Dired to be invoked on that subdirectory.
  993.  
  994. `o'
  995.      (`dired-find-file-other-window') Like `f', but uses another window
  996.      to display the file's buffer.  The Dired buffer remains visible in
  997.      the first window.  This is like using `C-x 4 C-f' to visit the
  998.      file.  *Note Multiple Windows: (emacs)Windows.
  999.  
  1000. `v'
  1001.      (`dired-view-file') Views the file described on this line using
  1002.      `M-x view-file'.  Viewing a file is like visiting it, but is
  1003.      slanted toward moving around in the file conveniently and does not
  1004.      allow changing the file.  *Note View File: (emacs)Misc File Ops.
  1005.      Viewing a file that is a directory goes to its headerline if it is
  1006.      in this buffer.  Otherwise, it is displayed in another buffer.
  1007.  
  1008. Commands to diff a file:
  1009.  
  1010. `D'
  1011.      (`dired-diff') Compare file at point with another file (default:
  1012.      file at mark), by running the system command `diff'.  The other
  1013.      file is the first file given to `diff'.
  1014.  
  1015. `M-~'
  1016.      (`dired-backup-diff') Diff this file with its backup file.  Uses
  1017.      the latest backup, if there are several numerical backups.  If
  1018.      this file is a backup, diff it with its original.  The backup file
  1019.      is the first file given to `diff'.
  1020.  
  1021. Other commands:
  1022.  
  1023. `+'
  1024.      (`dired-create-directory') Create a directory.
  1025.  
  1026. `W'
  1027.      (`dired-why') Pop up a buffer with error log output from Dired.
  1028.      All mark-using commands log errors there.  (Standard error from
  1029.      shell commands cannot be logged separately, it goes into the usual
  1030.      shell command output buffer.)  A group of errors from a single
  1031.      command ends with a formfeed, so that you can use `C-x ['
  1032.      (`backward-page') to find the beginning of new error logs that are
  1033.      reported by a command.
  1034.  
  1035. 
  1036. File: dired.info,  Node: Subdirectories in Dired,  Next: Hiding Directories in Dired,  Prev: Commands That Do Not Use Marks,  Up: Dired
  1037.  
  1038. Subdirectories in Dired
  1039. =======================
  1040.  
  1041. Thise section explains how to "insert" (or "expand") subdirectories in
  1042. the same Dired buffer and move around in them.
  1043.  
  1044.    You can display subdirectories in your Dired buffer by using `-R' in
  1045. your Dired listing switches.  But you do not usually want to have a
  1046. complete recursive listing in all your Dired buffers.  So there is a
  1047. command to insert a single directory:
  1048.  
  1049. `i'
  1050.      (`dired-maybe-insert-subdir') Insert this subdirectory into the
  1051.      same Dired buffer.  If it is already present, just move to it (type
  1052.      `l', `dired-do-redisplay' to refresh it).  Else inserts it as `ls
  1053.      -lR' would have done.  With a prefix arg, you may edit the ls
  1054.      switches used for this listing.  You can add `R' to the switches to
  1055.      expand the whole tree starting at this subdirectory.  This function
  1056.      takes some pains to conform to `ls -lR' output.  For example, it
  1057.      adds the headerline for the inserted subdirectory.
  1058.  
  1059.      The mark is dropped before moving, so `C-x C-x' takes you back to
  1060.      the old position in the buffer.
  1061.  
  1062.    Dired changes the buffer-local value of the variable
  1063. `page-delimiter' to `"\n\n"', so that subdirectories become pages.
  1064. Thus, the page moving commands `C-x [' and `C-x ]' (`backward-page' and
  1065. `forward-page') can be used to move to the beginning (i.e., the
  1066. headerlines) of subdirectories.
  1067.  
  1068.    In addition, the following commands move around directory-wise,
  1069. usually putting you on a file line instead of on a headerline.  For a
  1070. mnemonic, note that they all look like rotated versions of each other,
  1071. and that they move in the direction they point to.
  1072.  
  1073. `<'
  1074.      (`dired-prev-dirline') Goto previous directory file line.
  1075.  
  1076. `>'
  1077.      (`dired-next-dirline') Goto next directory file line.
  1078.  
  1079. `^'
  1080.      (`dired-up-directory') Dired parent directory.  Tries first to find
  1081.      its file line, then its header line in this buffer, then its Dired
  1082.      buffer, finally creating a new Dired buffer if necessary.
  1083.  
  1084. `v'
  1085.      (`dired-view-file') When the current file is not a directory, view
  1086.      it.  When file is a directory, tries to go to its subdirectory.
  1087.  
  1088.      This command is inverse to the `^' command and it is very
  1089.      convenient to use these two commands together.
  1090.  
  1091.    The following commands move up and down in the directory tree:
  1092.  
  1093. `M-C-u'
  1094.      (`dired-tree-up') Go up to the parent directory's headerline.
  1095.  
  1096. `M-C-d'
  1097.      (`dired-tree-down') Go down in the tree, to the first
  1098.      subdirectory's headerline.
  1099.  
  1100.    The following commands move forwards and backwards to subdirectory
  1101. headerlines:
  1102.  
  1103. `M-C-n'
  1104.      (`dired-next-subdir') Go to next subdirectory headerline,
  1105.      regardless of level.
  1106.  
  1107. `M-C-p'
  1108.      (`dired-prev-subdir') Go to previous subdirectory headerline,
  1109.      regardless of level.
  1110.  
  1111. 
  1112. File: dired.info,  Node: Hiding Directories in Dired,  Next: Acknowledgement,  Prev: Subdirectories in Dired,  Up: Dired
  1113.  
  1114. Hiding Directories in Dired
  1115. ===========================
  1116.  
  1117. "Hiding" a subdirectory means to make it invisible, except for its
  1118. headerline.  Files inside a hidden subdirectory are never considered by
  1119. Dired.  For example, mark-using commands will not "see" files in a
  1120. hidden directory.  Thus you can use hiding to temporarily exclude
  1121. subdirectories from operations without having to remove the markers.
  1122.  
  1123.    The hiding commands toggle, that is they unhide what was hidden and
  1124. vice versa.
  1125.  
  1126. `$'
  1127.      (`dired-hide-subdir') Hide or unhide the current subdirectory and
  1128.      move to next directory.  Optional prefix argument is a repeat
  1129.      factor.
  1130.  
  1131. `='
  1132.      (`dired-hide-all') Hide all subdirectories, leaving only their
  1133.      header lines.  If there is already something hidden, make
  1134.      everything visible again.  Use this command to get an overview in
  1135.      very deep directory trees or to move quickly to subdirs far away.
  1136.  
  1137. 
  1138. File: dired.info,  Node: Acknowledgement,  Next: Dired Customization,  Prev: Hiding Directories in Dired,  Up: Dired
  1139.  
  1140. Acknowledgement
  1141. ===============
  1142.  
  1143. I would like to thank
  1144.  
  1145.    * Richard Stallman for providing a pre-release version of `dired.el'
  1146.      from Emacs 19, critical comments and many helpful suggestions
  1147.  
  1148.    * Andy Norman for the collaboration that made Tree Dired and
  1149.      ange-ftp such a successful combination
  1150.  
  1151.    * Jamie Zawinski for insisting on and writing nested Dired format,
  1152.      and for lots of other things
  1153.  
  1154.    * Michael Ernst for the "omitting" code and helpful discussion about
  1155.      Dired design
  1156.  
  1157.    * Hans Chalupsky for providing FTP service and writing
  1158.      `dired-trns.el'
  1159.  
  1160.    * Roland McGrath for `find-dired.el' and bug fixes for the diffing
  1161.      commands
  1162.  
  1163.    * Kevin Gallagher for sending me existing VMS Dired fixes
  1164.  
  1165.    * Hal R. Brand for VMS support and porting his old dired fixes to
  1166.      Tree Dired
  1167.  
  1168.    * Hugh Secker-Walker for writing `dired-cd.el'
  1169.  
  1170.    * Tom Wurgler for ideas such as the "dired-jump-back" command
  1171.  
  1172.    * Cengiz Alaettinoglu, who found more bugs in Tree Dired than
  1173.      anybody else (except me)
  1174.  
  1175. and all other beta testers and people who reported bugs or just said
  1176. "thanks".
  1177.  
  1178. 
  1179. File: dired.info,  Node: Dired Customization,  Prev: Acknowledgement,  Up: Dired
  1180.  
  1181. Dired Customization
  1182. ===================
  1183.  
  1184. You can customize Dired by setting some variables in your `~/.emacs'
  1185. file.  Other variables are intended to be configured when Dired is
  1186. installed.  Finally, there are so-called `hook' variables.
  1187.  
  1188. * Menu:
  1189.  
  1190. * Dired User Options::
  1191. * Dired Configuration::
  1192. * Dired Hooks::
  1193.  
  1194.